﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using QLMB.Models;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using DataAnnotationsExtensions;
using DataAnnotationsExtensions.ClientValidation;

namespace QLMB.ViewModels
{
    public class InfoUser
    {
        [DisplayName("So dien thoai ban:")]
        public long? SDTBan { get; set; }

        [DisplayName("So fax:")]
        public long? SoFax { get; set; }

        [DisplayName("Ho va ten dem: ")]
        [Required(ErrorMessage = "Vui long nhap vao Ho")]
        public string HoHK { get; set; }

        [DisplayName("Ten:")]
        [Required(ErrorMessage = "Vui long nhap vao Ten")]
        public string TenHK { get; set; }


        [DisplayName("So dien thoai di dong:")]
        [Required(ErrorMessage = "Vui long nhap So dien thoai lien lac")]
        public long SDTDidong { get; set; }



        [DisplayName("Email:")]
        [Required(ErrorMessage = "Nhap vao dia chi email lien lac")]
        [EmailAttribute(ErrorMessage = "Nhap email khong dung")]
        public string Email { get; set; }

        [DisplayName("Danh tinh:")]
        [Required(ErrorMessage = "Nhap vao danh tinh")]
        public string DanhTinh { get; set; }

        [DisplayName("Ngay sinh:")]
        public DateTime? NgaySinh { get; set; }

        [DisplayName("Gioi tinh:")]
        [Required(ErrorMessage = "Chon gioi tinh")]
        public string GioiTinh { get; set; }

        [DisplayName("So CMND")]
        [Required(ErrorMessage = "Nhap vao so CMND")]
        public long SoCMND { get; set; }

        public string MaHK { get; set; }
    }
    
}